//
//  String+CLPath.swift
//  CLExtension
//
//  Created by CharlieLiao on 2017/8/2.
//  Copyright © 2017年 Charlie. All rights reserved.
//


extension String {
    
    public static var documentsDirectory: String? {
        return NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last
    }
    
    public static var cachesDirectory: String?  {
        NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).last
    }
    
}
